import socket
import time

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('127.0.0.1', 8080))

while True:
    s.send(b'client')
    buff = s.recv(100)
    if buff:
        print(buff)
    time.sleep(1)
s.close()
